package com.lw.alarm.service;

import com.github.pagehelper.PageInfo;
import com.lw.alarm.model.AlarmServer;
import com.lw.alarm.model.enums.ServerStatus;
import com.lw.common.core.service.BaseServiceI;

public interface AlarmServerService extends BaseServiceI<AlarmServer, Integer> {
	public PageInfo<AlarmServer> findAlarmServerByPage(AlarmServer record, int pageNum, int pageSize);

	/**
	 * 
	 * @Description:增加失败次数
	 * @param alarmServer
	 */
	public void incAlarmServerTimes(Integer id, Integer times);

	/**
	 * 
	 * @Description:重新设置失败次数
	 * @param alarmServer
	 */
	public void reSetAlarmServerTimes(Integer id, Integer times);

	/**
	 * 
	 * @Description:更改服务状态
	 * @param id
	 * @param status
	 */
	public void updateServerStatus(Integer id, ServerStatus status);

}
